/**
 * Created by lixiaodi on 2018/11/8.
 */
mini.parse();
//得到数据表
var grid = mini.get("actdatagrid");
var menu = new ColumnsMenu(grid);       //表头添加菜单按钮
//加载数据表数据
//grid.load(ajaxUrl);
//grid.load();
//弹出窗口路径前缀
var url = bootPATH + "../frame/frame1/pages/";

//打开流程执行过程
function flowProcess(){
    var jumpUrls = url +"activiti/datagridDetail/flowProcess.html";
    var titles = "流程执行过程列表";
    //跳转页面
    jumpPage(jumpUrls,titles);
}
//查看历史批注
function oldPostil(){
    var jumpUrls = url + "activiti/datagridDetail/oldPostil.html";
    var titles = "历史批注列表";
    //跳转页面
    jumpPage(jumpUrls,titles);
}
//查看流程图
function seeImg(){
    //得到选中行
    var row = grid.getSelected();
}


//得到选中行以后跳转页面
function jumpPage(jumpUrl,title){
    //得到选中行
    var row = grid.getSelected();
    if (rows.length > 0) {
        mini.open({
            url: url + "activiti/datagridDetail/oldPostil.html",
            title: "历史批注列表",
            width: 600,
            height: 400,
            onload: function () {
                var iframe = this.getIFrameEl();
                var data = {
                    action: "see",
                    taskId : row.id
                };
                iframe.contentWindow.SetData(data);
            },
            ondestroy: function (action) {
                grid.reload();
            }
        });
    }else {
        mini.alert("请选中一条记录");
    }
}